package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jackie on 2017/11/2.
 * 父作业点 仓库点请求实体
 */

public class WarehousePointResponseBean implements Parcelable {

    /**
     * pointUkid : 17163
     * stockName : name
     * stockUkid : 77104
     */

    private String pointUkid;
    private String stockName;
    private String stockUkid;
    private boolean isSelect;

    public String getPointUkid() {
        return pointUkid;
    }

    public void setPointUkid(String pointUkid) {
        this.pointUkid = pointUkid;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public String getStockUkid() {
        return stockUkid;
    }

    public void setStockUkid(String stockUkid) {
        this.stockUkid = stockUkid;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.pointUkid);
        dest.writeString(this.stockName);
        dest.writeString(this.stockUkid);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    public WarehousePointResponseBean() {
    }

    protected WarehousePointResponseBean(Parcel in) {
        this.pointUkid = in.readString();
        this.stockName = in.readString();
        this.stockUkid = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Parcelable.Creator<WarehousePointResponseBean> CREATOR = new Parcelable.Creator<WarehousePointResponseBean>() {
        @Override
        public WarehousePointResponseBean createFromParcel(Parcel source) {
            return new WarehousePointResponseBean(source);
        }

        @Override
        public WarehousePointResponseBean[] newArray(int size) {
            return new WarehousePointResponseBean[size];
        }
    };
}
